package com.susallwave.srcb.service.sys;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.susallwave.srcb.entity.sys.UserRole;
import com.susallwave.srcb.response.Result;

import java.util.List;

/**
 * <p>
 * 用户角色关系表 服务类
 * </p>
 *
 * @author MyBatisPlusGenerator
 * @since 2025-07-20
 */
public interface UserRoleService extends IService<UserRole> {

    List<UserRole> userRoles(String userAcct);

    Result<IPage<UserRole>> listRoles(int pageNum, int pageSize, String userAcct, String roleCode);

    Result<Void> setUserRoles(String userAcct, List<String> roleCodes);
}
